package com.rpcfx.api;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class ServiceProviderDesc {

    private String host;
    private Integer port;
    private String serviceClass;

    // group
    // version


    public String getHost() {
        return "/" + host + ":" + port;
    }

    public String getServiceName() {
        return "/" + host + ":" + port + "/" + serviceClass;
    }
}
